﻿using SQLite;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Teacker_kit_Blank_App.DataModel
{
    public class Student
    {
        private int _Id;
        private string _Name;
        private string _Image;
        /*private ObservableCollection<Class> _LstClasses;
      
       

        public ObservableCollection<Class> LstClasses
        {
            get { return _LstClasses; }
            set { _LstClasses = value; }
        }*/

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        [PrimaryKey, AutoIncrement]
        public int Id
        {
            get { return _Id; }
            set { _Id = value; }
        }

        public string Image
        {
            get { return _Image; }
            set { _Image = value; }
        }

          public ObservableCollection<Student> GetAll()
        {
            ObservableCollection<Student> lstStudents = new ObservableCollection<Student>();
            lstStudents.Add(new Student()
            {
                Id = 1,
                Name = "Mostafa",
                Image = "/Assets/1.jpg",
             //   LstClasses = null
            });
            lstStudents.Add(new Student()
            {
                Id = 2,
                Name = "Mona",
                Image = "/Assets/2.jpg",
               // LstClasses = null
            });
            lstStudents.Add(new Student()
            {
                Id = 3,
                Name = "Nourhan",
                Image = "/Assets/1.jpg",
                //LstClasses = null
            });
            return lstStudents;
        }
    }

    
};
